<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>田园牧歌 - 在线充值</title>
<link rel="stylesheet" type="text/css" href="/misc/css/reset.css" />
<link rel="stylesheet" type="text/css" href="/misc/css/btnicon.css"  />
<style type="text/css">
body{
font-size:12px;
}
table.zhifutable{
border-collapse:collapse;
width:100%;
}
table.zhifutable td,table.zhifutable th{
padding:5px;
text-align:left;
vertical-align:top;
border:1px solid #CCCCCC
}
table.zhifutable tbody th{
font-weight:bold;
text-align:right;
width:100px;
}
#footer {
border-top:1px solid #999999;
clear:both;
color:#999999;
margin:2em 0 0;
padding:2px 0 0;
text-align:center;
font-size:12px;
}


a{
color:#0095F4  ;
font-size:12px;
margin:auto 10px;
text-decoration:none;
}
a:hover{
text-decoration:underline;
color:#0066CC;
}


.btn_green {background-color:#A5D344;background-image:url(/misc/images/account/buttongreen.png);color:#FFFFFF;font-weight:bold;padding:3px 17px;margin-right:5px;
border:1px solid #eee;
cursor:pointer;
}
</style>
</head>
<body>
<div style="margin:30px auto;width:700px">
	<div style="font-size:1.2em;font-weight:bold;margin:10px auto">
		田园牧歌消费充值
	</div>
	<?PHP
	if(isset($_REQUEST['success']) && $_REQUEST['success']=='1'){
		echo '
	<div style="margin:10px auto;background:url(/misc/images/account/succeed64_64.gif) no-repeat;line-height:64px;font-size:14px;font-weight:bold;color:#009900;padding-left:80px">
		支付成功！感谢您使用在线充值。
	</div>
		';
	}else{
		echo '
	<div style="margin:10px auto;line-height:40px;font-size:14px;font-weight: ;color:#FF0000;padding-left:10px">
		<span style="font-size:2em">X</span>
		处理失败！请检查您的支付或联系我们的客服。客服热线：400-0900-917
	</div>
		';
	}
	?>
	<div style="margin:10px auto"> 
		<table class="zhifutable" >
			<thead>
				<tr>
					<th colspan="2" style="font-weight:bold;background-color:#F5F5F5">
						支付信息
					</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<th>充值金额：</th>
					<td style="font-size:16px;font-weight:bold;color:#009900">
						<?PHP
						if(isset($_REQUEST['payAmount'])){
							echo '￥'.$_REQUEST['payAmount']/100;
						}	
						?>
					</td>
				</tr>
				<tr>
					<th>充值流水号：</th>
					<td style="font-size:14px;">
						<?PHP
						if(isset($_REQUEST['orderId'])){
							echo $_REQUEST['orderId'];
						}
						?>
					</td>
				</tr>
				<tr>
					<th>日期：</th>
					<td style="font-size:14px;">
						<?PHP
						if(isset($_REQUEST['orderTime'])){
							$orderTime = $_REQUEST['orderTime'];
							echo substr($orderTime,0,4).'-'.substr($orderTime,4,2).'-'.substr($orderTime,6,2).' '.substr($orderTime,8,2).':'.substr($orderTime,10,2).':'.substr($orderTime,12,2);
							
						}
						?>
					</td>
				</tr>
				<tr>
					<th> </th>
					<td style=" ">
						<button class="btn_green" onclick="jumpTo('/account_pay/index')">返回我的账户</button>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div id="footer"> 
		<span>Copyright © <?php echo date('Y')?> 田园牧歌</span>
		<a href="http://www.tianyuan360.com" target="_blank" >首页</a>
		<a href="http://www.miibeian.gov.cn" target="_blank" >粤ICP备12022965号</a>
	</div>
</div>
<script type="text/javascript">
/**
*	页面跳转函数
*/
function jumpTo(url)
{
	window.location=url;
}
</script>
<?PHP
 /* 
 Array ( [msg] => success! [fee] => 1 [bankDealId] => 9101863050 [bankId] => CMB [ext1] => [payAmount] => 2 [dealId] => 121005073 [orderTime] => 20091216112129 [signMsg] => B790D770E82FF64318C0D0A6BA2A55F0 [payType] => 10 [language] => 1 [errCode] => [version] => v2.0 [ext2] => [signType] => 1 [orderAmount] => 2 [orderId] => 80081 [dealTime] => 20091216112248 [merchantAcctId] => 1001815436101 [payResult] => 10 ) 
  */
//debug($_SESSION,'<br />',$_ENV,'<br />','<br />',$_POST,'<br />',$_GET,'<br />',$_SERVER,'<br />',$_REQUEST);

?>

</body>
</html>